package cn.canway.xunyou_test.service.impl;

import cn.canway.xunyou_test.bean.User;
import cn.canway.xunyou_test.mapper.UserMapper;
import cn.canway.xunyou_test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    public UserMapper userMapper;

    @Override
    public User login(String name, String pwd) {
        User user = userMapper.getUserByUserAndPwd("test","123456");
        return user;
    }
}
